<div id="content-header">
<h1>List Menu Link</h1>
</div>
<div id="breadcrumb">
<a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
<a href="#" class="current">Edit Menu Link</a>
</div>
<div class="container-fluid">
<div class="row-fluid">
</div>
<div class="row-fluid">
	<div class="span12">

    <?php
    echo $this->element('toolbar');
  echo $this->Form->create('MenuLink', array('id' => 'paginate','class'=>'form-horizontal', 'action' => 'edit', 'url' => $this->request->here(false), 'type' => 'post',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));
    ?>

								
		<div class="widget-box">
<?php 
        $fieldsets['title'] = $this->Form->input('title', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'type' => 'text'));
       
        $fieldsets['path'] = $this->Form->input('path', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'type' => 'text'));
      

        $fieldsets['expanded'] = $this->Form->input('expanded', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'type' => 'checkbox'));
        

        $fieldsets['enabled'] = $this->Form->input('enabled', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'checked' => 'check',
            'type' => 'checkbox'));
       

        $fieldsets['parent_id'] = $this->Form->input('parent_id', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group controls-large'),
            'after' => '</div>',
            'type' => 'select',
            'options' => $menus,
            'empty' => '-- None --',
            'escape' => false));

        $fieldsets['description'] = $this->Form->input('description', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'type' => 'textarea'));

        $fieldsets['target'] = $this->Form->input('target', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group controls-large'),
            'after' => '</div>',
            'options' => array(
            '' => __d('system', 'Same window'),
            '_blank' => __d('system', 'New window')
            ),
            'type' => 'select'));
    
        $fieldsets['selected'] = $this->Form->input('selected', array(
            'label' => array('class' => 'control-label'),
            'between' => '<div class="controls">',
            'div' => array('class' => 'control-group'),
            'after' => '</div>',
            'type' => 'textarea'));
      
        ?>       
        
    <?php
    echo $this->Layout->form($_layouts, $fieldsets);
    ?>
		</div>	

    <?php
    echo $this->Form->hidden('menu_id', array('value' => $menuId));
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>			
	</div>	
</div>